<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>2D转换中心点</title>
    <style>
        .ratate{
            width: 500px;
            height: 500px;
            background-color: pink;
            margin: 100px auto;
            /* 默认旋转中心是重点  利用放位置改变旋转中心  如：left bottom 左下角 */
            transform-origin: 50% 50%;
            transition: all 1s;
        }
        .ratate:hover{
            /* 360度旋转 */
            transform: rotate(360deg);
        }
    </style>
</head>
<body>
    <div class="ratate"></div>
    
</body>
</html>